import Vue from 'vue'
import App from './App.vue'
// 导入饿了么ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
// 导入echarts
import echarts from 'echarts'
Vue.prototype.$echarts = echarts

// 导入axios
import axios from 'axios'
const myaxios = axios.create({
  baseURL: process.env.VUE_APP_URL,
})
Vue.prototype.$http = myaxios

// 导入路由
import router from './router'

// 导入vuex
import store from './store'

Vue.config.productionTip = false
Vue.use(ElementUI)

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')